# coding=utf-8
from string import Template

from utils.util import  writeFile


Android_bp = Template("""
cc_library {
	name: "${name}",
    vendor: true,
    srcs: [
        "src/*.cpp",
    ],
    shared_libs: [
        "libipcp",
        "liblog",
        "libtransfer",
        "libbase",
        "libvhal-log"
    ],
    include_dirs:["vendor/ecarx/system/libipcp"],
    local_include_dirs: ["include"],
    export_include_dirs: ["include"],
    export_shared_lib_headers: [
        "libtransfer"
    ]
}
"""
)



def gen_apvp_Android_bp(library_name:str,outDir:str):
    writeFile(outDir, "Android.bp",lambda file:file.write(Android_bp.substitute(
        name=library_name
    )))     
    
        

